﻿using System;
using System.Data;
using System.Collections.Generic;

namespace BaseServer.BRL
{
	public partial class Client : JWFW.BOL.BaseConfigEntity
	{
		public Client()
		{
			m_tableName = "t_client";
			m_hasCode = true;
			m_tblCacheManager.IsEnable = true;
		}

		protected string m_commont = string.Empty;
		protected string m_iv = string.Empty;
		protected string m_rv = string.Empty;
		protected string m_pwd = string.Empty;
		protected double m_income = 0.0;

		/// <summary>
		/// 
		/// </summary>
		public string Commont
		{
			get { return m_commont; }
			set { m_commont = value; }
		}
		/// <summary>
		/// 干扰值
		/// </summary>
		public string Iv
		{
			get { return m_iv; }
			set { m_iv = value; }
		}
		/// <summary>
		/// 比例
		/// </summary>
		public string Rv
		{
			get { return m_rv; }
			set { m_rv = value; }
		}
		/// <summary>
		/// 密码
		/// </summary>
		public string Pwd
		{
			get { return m_pwd; }
			set { m_pwd = value; }
		}
		/// <summary>
		/// 收益余额
		/// </summary>
		public double Income
		{
			get { return m_income; }
			set { m_income = value; }
		}

		protected override void FillContainer()
		{
			base.FillContainer();
			m_container.Add("commont", m_commont);
			m_container.Add("iv", m_iv);
			m_container.Add("rv", m_rv);
			m_container.Add("pwd", m_pwd);
			m_container.Add("income", m_income);
		}

		public override bool GetProperties(System.Data.DataRow record)
		{
			if(!base.GetProperties(record))
			{
				return false;
			}
			m_commont = this.GetStringValue(record, "commont");
			m_iv = this.GetStringValue(record, "iv");
			m_rv = this.GetStringValue(record, "rv");
			m_pwd = this.GetStringValue(record, "pwd");
			m_income = this.GetDoubleValue(record, "income");
			return true;
		}

	}
}
